#ifndef FILESONIC_H
#define FILESONIC_H

#include "SiteParser.h"
#include <QString>
#include <QHttp>
#include "captchas/googlerecaptcha.h"
#include <QTime>
#include <QTimer>


class FileSonic:public SiteParser
{
    Q_OBJECT
    int checkPhase(QString);
    GoogleRecaptcha imgLocator;
    QString path;
    QString post;
    int delayed;
    int delayTime;
    QTime startTm;
    QTimer* tm;
    int pendingHash;
public:
    static const QString site;
    FileSonic();
    void parsePage(QString);
    void getForm(QString);
    void shortDelay(QString);
    void getFile(QString);
    void solveCaptcha(QString);
    int checkLongDelay(QString page);
    int getDelay();
    QString type();
public slots:
    void imgLocated(QString, QString);
    void timeout();
    void captchaCompetition(int, QString);
};


#endif // FILESONIC_H
